package cn.com.xcf.service.impl;

import cn.com.xcf.dao.mapper.TFinFeeCheckMapper;
import cn.com.xcf.dao.model.TFinFeeCheck;
import cn.com.xcf.dao.model.TFinFeeCheckExample;
import cn.com.xcf.service.FeeCheckService;
import cn.com.xcf.service.base.BaseServiceImpl;
import com.xcf.entity.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.PostConstruct;
import java.util.List;
import java.util.Map;

/**
 * TFinFeeCheckService实现
 * @author WongBin
 * @date 2017/11/11.
 */
@Transactional
@Service(value="feeCheckService")
public class TFinFeeCheckServiceImpl extends BaseServiceImpl<TFinFeeCheckMapper, TFinFeeCheck, TFinFeeCheckExample> implements FeeCheckService {

    private TFinFeeCheckMapper tFinFeeCheckMapper;

    @Autowired
    public void settFinFeeCheckMapper(TFinFeeCheckMapper tFinFeeCheckMapper) {
        this.tFinFeeCheckMapper = tFinFeeCheckMapper;
    }

    @Override
    @PostConstruct
    public void initMapper() {
        //super.initMapper();
        super.mapper = tFinFeeCheckMapper;
    }
    @Override
    public List<TFinFeeCheck> selectByPage(TFinFeeCheckExample tFinFeeCheckExample,
                                            Map param, Page page) {

        return super.selectByPage(tFinFeeCheckExample,param,page);
    }
}